package edu.chinasoft.ioc01;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public
class People02 {
    //懒汉式单例设计模式
    private static People02 instance;
    private static Log log = LogFactory.getLog(People01.class);

    private People02() {
    }
    public synchronized static People02  getInstance(){
        log.info("People02>>>getInstance start……");
        if(instance==null){
            instance=new People02();
        }
        return instance;
    }
}
